package com.woniu.gf.pawn.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.woniu.gf.pawn.comm.core.domain.ProductSmallType;
import com.woniu.gf.pawn.product.parma.ShowProductSmallTypeParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Lucas
 * @since 2020-10-15
 */
public interface ProductSmallTypeMapper extends BaseMapper<ProductSmallType> {
    /**
     *
     * @param page 查询
     * @param bigId 大类id
     * @param smallName 小类名字
     * @return
     */
    IPage<ShowProductSmallTypeParam> selectPageVo(Page<ShowProductSmallTypeParam> page, @Param("bigId") Integer bigId, @Param("smallName") String smallName);

    /**
     * 修改小类
     */
    void updateSmallType(ProductSmallType productSmallType);

    /**
     * 删除
     */
    void deleteSmallType(List<Integer> ids);


}
